package demo1;
import java.util.ArrayList;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yinsh
 * Date: 2025-01-19
 * Time: 11:53
 */
public class CardList<T> extends ArrayList<T> {
    private String[] suits;

    public CardList(CardList cards) {
        suits = new String[]{"♣", "♥", "♦", "♠"};
        for (int i = 1; i <= 13 ; i++) {
            for (int j = 0; j < 4; j++) {
                cards.add(new Card(i,suits[j]));
            }
        }
    }

    public void Display(CardList cards) {
        System.out.println(cards);
    }
}
